﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ABCTile.Models
{
    public class Shape
    {
        [Display(Name = "Shape ID")]
        public Int32 ShapeID { get; set; }

        [Required(ErrorMessage = "Shape Name is required")]
        [Display(Name = "Shape Name")]
        [MaxLength(50, ErrorMessage = "Shape Name cannot be longer than 50 characters")]
        public string ShapeName { get; set; }

        public virtual ICollection<Tile> Tiles { get; set; }
    }
}
